package com.bt.lms.ui.page.sys.style.action.Lab;

import javafx.event.EventHandler;
import javafx.scene.control.Label;
import javafx.scene.input.MouseEvent;

/**
 * 分页标签鼠标移入事件
 */
public class PagingMouseAction implements EventHandler<MouseEvent> {

    /**
     * 标签
     */
    private final Label label;

    /**
     * 构建事件
     *
     * @param label 标签
     */
    public PagingMouseAction(Label label) {
        this.label = label;
    }

    /**
     * 事件执行
     *
     * @param event the event which occurred
     */
    @Override
    public void handle(MouseEvent event) {

        //下划线开启
        label.setUnderline(true);

    }
}
